#ifndef TCPSTATEDIALOG_H
#define TCPSTATEDIALOG_H

#include <QDialog>
#include <QTcpSocket>

namespace Ui {
class TCPStateDialog;
}

class TCPStateDialog : public QDialog
{
    Q_OBJECT

public:
    explicit TCPStateDialog(QWidget *parent = nullptr);

    void setState(QTcpSocket::SocketState state);

    void setInfo(const QString& info);

    ~TCPStateDialog();

private:
    void init();
public slots:
    void onOkBtnClicked();

private:
    Ui::TCPStateDialog *ui;
};

#endif // TCPSTATEDIALOG_H
